package com.usian.service.serviceimpl;

import com.usian.mapper.CourseMapper;
import com.usian.pojo.Course;
import com.usian.service.CourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;

@Service
@Transactional
public class CourseServiceImpl implements CourseService {

    @Autowired
    private CourseMapper courseMapper;


    @Override
    public List<Course> findList() {
        return courseMapper.findList();
    }

    @Override
    public void add(Course course) {
        courseMapper.add(course);
    }

    @Override
    public void del(Integer id) {
        courseMapper.del(id);
    }

    @Override
    public Course updates(Integer id) {
        return courseMapper.updates(id);
    }

    @Override
    public void update(Course course) {
        courseMapper.update(course);
    }
}
